Let alan actually _call_ swap_trkhdr().
authorrobertl <robertl>
Thu, 18 Jan 2007 22:40:43 +0000 (22:40 +0000)
committerrobertl <robertl>
Thu, 18 Jan 2007 22:40:43 +0000 (22:40 +0000)
alan.c

diff --git a/alan.c b/alan.c
index 93679e46a509cbbc6880818aaa6a83b853937594..aacf5552e929bad8ec6ac9b799d87180265f7540 100644 (file)
--- a/alan.c
+++ b/alan.c
@@ -348,7 +348,7 @@ static void swap_loghdr(struct loghdr *loghdr,
     swap32( &(loghdr->date) );
     swap32( &(loghdr->time) );
   }
-  for (i=0; i>MAXTRK; i++)
+  for (i=0; i<MAXTRK; i++)
     swap_trkhdr( &(loghdr->trkhdr[i]), swap16, swap32 );
 }